package org.example.auth.service;

import org.example.auth.contract.request.RoleRequestForQuery;
import org.example.auth.contract.request.RoleRequestForSave;
import org.example.auth.contract.request.RoleRequestForUserBind;
import org.example.auth.contract.response.RoleResponseForUser;
import org.example.auth.model.entity.Role;
import org.example.auth.model.entity.UserRole;

import java.util.List;

public interface RoleService {
    Role save(RoleRequestForSave request);


    List<Role> getRoles(RoleRequestForQuery request);

    void deleteRole(Long id);

    RoleResponseForUser groupRolesForUser(Long userId);

    /**
     * 获取用户默认的角色
     */
    UserRole getDefaultRoleByUserId(Long userId);



}
